{{each data as message index}}
    {{if message.pass == 'false'}}
    <a href=management-job-details.html?id={{message.id}}>
        {{/if}}
        {{if message.pass == 'true'}}
        <a href=pay-salary.html?id={{message.id}}>
        {{/if}}
        <div class="box">
            <img src="../images/hotel-logo.png">
            <div class="box-content">
                <h5 align="left">
                    <b>{{message.workContent}}</b>
                    <span class="badge">{{message.postType}}</span>
                            <span class="time">
                                <span class="day">{{message.theDate}}</span>
                                <span class="hours">
                                    <small style="margin-top: -10px">{{message.startDate}}</small>
                                    <small style="margin-top: 10px">{{message.endDate}}</small>
                                </span>
                            </span>
                </h5>
                <h6>
                    <span>{{message.district}}</span>
                    <span class="status">{{message.workPeriod}}</span>
                </h6>
                <h6 class="hotel-address"><img src="../images/location-icon.png"><span id="hotel-address">{{message.detailAddress}}</span></h6>
            </div>
        </div>
    </a>
{{/each}}